
<div id="component-index">

    <div class="title">
        <a href="__APP__/Component/add" class="add">添加组件</a>
        <eq name="isshow" value="yes">
            <a class="delete" href="javascript:;">删除</a><a class="select" href="javascript:;">全选</a>
        </eq>
    </div>

    <eq name="nobody" value="no">
            <div class="content">
                <div id="nodata">暂无组件</div>
            </div>
            <div class="footer">

            </div>
        <else/>
            <div class="content">

                <div class="search">
                    <form action="__APP__/Component/index" method="post" class="select">
                        关键字 <input type="text" name="key" /> 按
                        <select name="search">
                            <option value="1">ID</option>
                            <option value="2">组件名</option>
                        </select>
                        <input type="submit" value="搜索" />
                    </form>
                </div>
                <form action="__APP__/Component/del" method="post" name="delete" class="delete">
                    <table>
                        <tr>
                            <th>ID</th><th>组件名</th><th>使用模型</th><th>使用操作</th><th>状态</th><th>排序</th><th>操作</th>
                        </tr>
                        <volist name="list" id="vo">
                            <tr>
                                <td><{$vo['id']}></td>
                                <td><a href="__APP__/Component/edit/id/<{$vo['id']}>"><{$vo['name']}></a></td>
                                <td><{$vo['model']}></td>
                                <td><{$vo['action']}></td>
                                <if condition="$vo['published']" value="1">
                                    <td>开启</td>
                                   <else/>
                                    <td>关闭</td>
                                </if>
                                <td><{$vo['sort']}></td>
                                <td><input type="checkbox" name="del[]" value="<{$vo['id']}>" /></td>
                            </tr>
                        </volist>
                    </table>
                </form>

            </div>
            <div class="footer">
                <{$show|default="暂无数据"}>
            </div>
    </eq>

</div>
<script type='text/javascript' src='../Public/js/component_index.js'></script>